package com.jsj.subway.ai.largemodel.models;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * 通义千问 请求入参
 * 参照 <a href="https://help.aliyun.com/zh/dashscope/developer-reference/api-details?spm=a2c4g.11186623.0.0.141823654h8IqZ#341800c0f8w0r">...</a>
 * https://help.aliyun.com/zh/dashscope/developer-reference/compatibility-of-openai-with-dashscope/?spm=a2c4g.11186623.0.0.69ec46c1zbHgOC

 */
@Slf4j
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AliModelCompletionRequest {
    /**
     * 使用的模型
     */
    private String model = "qwen-plus";

    /**
     * 对话消息
     */
    private List<Message> messages;

    //true 支持流式
    private Boolean stream;

    private Float temperature;

}
